<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DLC Search Engine: com.utn.searchengine.LocalWordCountManager Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DLC Search Engine
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn.html">utn</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn_1_1searchengine.html">searchengine</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html">LocalWordCountManager</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.utn.searchengine.LocalWordCountManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::utn::searchengine::LocalWordCountManager" -->
<p><a href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager_1_1_compare.html">Compare</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#ae7395f3b7b0700967981f31647d97f29">LocalWordCountManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a7fdb486e1b5ae7581eb27fa139432d61">addDocument</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a4baf4121a603c1471bcc9e0856844bae">getTotalNumberOfDocuments</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#acde1570f752717dfe74eb14e8ad682c7">timesThatAWordRepeatsOnDocument</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> word, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#aad7261a1c223513a9126656550fd7d12">numberOfDocumentsWhereWordAppears</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> word)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#acd1c0280284cab09e9c1aca3686d9545">inverseFrecuency</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> word)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a46f22d947651c786498ae8f93a7ccb61">getDocumentModule</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document, double invFrecuency)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a6e756855cacf68cbc81edd8ee6876461">estimateWeight</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> word, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Collection&lt; <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_similitude.html">Similitude</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#adbea00f02f037e78ff02a412d876ea5c">determinateBestSimilitude</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#adb499e31d2d177c13d7c30fc95d09984">getQueryModule</a> (Map&lt; String, Integer &gt; wordsOfQuery)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_similitude.html">Similitude</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a9cc53ea7ff20a437016f205f5c174335">determinateSimilitude</a> (Map&lt; String, Integer &gt; wordsOfQuery, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document1, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> document2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Map&lt; String, Integer &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a9fc1b920828649066ae8151be2ba06dd">filterQuery</a> (Map&lt; String, Integer &gt; wordsOfQuery)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An implementation of services that are usefull to count words This are using local Structures and can dissapear once the structure is migrated to database, but the interface probably will be the same. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>altamirano,peker,liberal </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00022">22</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae7395f3b7b0700967981f31647d97f29"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::LocalWordCountManager" ref="ae7395f3b7b0700967981f31647d97f29" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#ae7395f3b7b0700967981f31647d97f29">com.utn.searchengine.LocalWordCountManager.LocalWordCountManager</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00029">29</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_vocabulary_8java_source.html#l00027">com.utn.searchengine.Vocabulary.loadVocabularyWords()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7fdb486e1b5ae7581eb27fa139432d61"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::addDocument" ref="a7fdb486e1b5ae7581eb27fa139432d61" args="(Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a7fdb486e1b5ae7581eb27fa139432d61">com.utn.searchengine.LocalWordCountManager.addDocument</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds a document to all the structures. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>a <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00041">41</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_document_manager_8java_source.html#l00036">com.utn.searchengine.DocumentManager.addDocument()</a>, <a class="el" href="_post_list_8java_source.html#l00050">com.utn.searchengine.PostList.addDocumentWords()</a>, <a class="el" href="_vocabulary_8java_source.html#l00054">com.utn.searchengine.Vocabulary.addDocumentWords()</a>, <a class="el" href="_document_8java_source.html#l00014">com.utn.searchengine.Document.getLocation()</a>, and <a class="el" href="_word_count_8java_source.html#l00024">com.utn.searchengine.WordCount.retrieveWordCount()</a>.</p>

</div>
</div>
<a class="anchor" id="adbea00f02f037e78ff02a412d876ea5c"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::determinateBestSimilitude" ref="adbea00f02f037e78ff02a412d876ea5c" args="(Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Collection&lt;<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_similitude.html">Similitude</a>&gt; <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#adbea00f02f037e78ff02a412d876ea5c">com.utn.searchengine.LocalWordCountManager.determinateBestSimilitude</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A query can have different similitudes between documents. Here the list of similitudes between a query and all the documents </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">document</td><td>the query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An Array of <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_similitude.html">Similitude</a>. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00168">168</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_local_word_count_manager_8java_source.html#l00245">com.utn.searchengine.LocalWordCountManager.determinateSimilitude()</a>, <a class="el" href="_local_word_count_manager_8java_source.html#l00271">com.utn.searchengine.LocalWordCountManager.filterQuery()</a>, <a class="el" href="_post_list_8java_source.html#l00125">com.utn.searchengine.PostList.getCandidateDocumentsFiltered()</a>, <a class="el" href="_local_word_count_manager_8java_source.html#l00222">com.utn.searchengine.LocalWordCountManager.getQueryModule()</a>, <a class="el" href="_word_count_8java_source.html#l00024">com.utn.searchengine.WordCount.retrieveWordCount()</a>, and <a class="el" href="_document_8java_source.html#l00050">com.utn.searchengine.Document.setModule()</a>.</p>

</div>
</div>
<a class="anchor" id="a9cc53ea7ff20a437016f205f5c174335"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::determinateSimilitude" ref="a9cc53ea7ff20a437016f205f5c174335" args="(Map&lt; String, Integer &gt; wordsOfQuery, Document document1, Document document2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_similitude.html">Similitude</a> <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a9cc53ea7ff20a437016f205f5c174335">com.utn.searchengine.LocalWordCountManager.determinateSimilitude</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, Integer &gt;&#160;</td>
          <td class="paramname"><em>wordsOfQuery</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Determina la similitud entre dos documentos </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">wordsOfQuery</td><td>las palabra que aparecen en la query </td></tr>
    <tr><td class="paramname">document1</td><td>documento de la base de datos </td></tr>
    <tr><td class="paramname">document2</td><td>documento de la query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>el coseno(similitud entre dos documentos) </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00245">245</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>, <a class="el" href="_word_8java_source.html#l00042">com.utn.searchengine.Word.getName()</a>, and <a class="el" href="_vocabulary_8java_source.html#l00019">com.utn.searchengine.Vocabulary.getVocabularyWords()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00168">com.utn.searchengine.LocalWordCountManager.determinateBestSimilitude()</a>.</p>

</div>
</div>
<a class="anchor" id="a6e756855cacf68cbc81edd8ee6876461"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::estimateWeight" ref="a6e756855cacf68cbc81edd8ee6876461" args="(Word word, Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a6e756855cacf68cbc81edd8ee6876461">com.utn.searchengine.LocalWordCountManager.estimateWeight</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>word</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The Weight of a word is important to determinate wich words are more usefull to perform a search and wich of them not. Each word can have different weight on different documents. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> </td></tr>
    <tr><td class="paramname">document,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The weight of the word on the <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00131">131</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_local_word_count_manager_8java_source.html#l00104">com.utn.searchengine.LocalWordCountManager.getDocumentModule()</a>, <a class="el" href="_document_8java_source.html#l00014">com.utn.searchengine.Document.getLocation()</a>, <a class="el" href="_document_8java_source.html#l00045">com.utn.searchengine.Document.getModule()</a>, <a class="el" href="_word_count_8java_source.html#l00086">com.utn.searchengine.WordCount.getTF()</a>, <a class="el" href="_local_word_count_manager_8java_source.html#l00081">com.utn.searchengine.LocalWordCountManager.inverseFrecuency()</a>, <a class="el" href="_document_manager_8java_source.html#l00028">com.utn.searchengine.DocumentManager.setDocumentModule()</a>, <a class="el" href="_document_8java_source.html#l00050">com.utn.searchengine.Document.setModule()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00062">com.utn.searchengine.LocalWordCountManager.timesThatAWordRepeatsOnDocument()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00245">com.utn.searchengine.LocalWordCountManager.determinateSimilitude()</a>.</p>

</div>
</div>
<a class="anchor" id="a9fc1b920828649066ae8151be2ba06dd"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::filterQuery" ref="a9fc1b920828649066ae8151be2ba06dd" args="(Map&lt; String, Integer &gt; wordsOfQuery)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Map&lt;String, Integer&gt; <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a9fc1b920828649066ae8151be2ba06dd">com.utn.searchengine.LocalWordCountManager.filterQuery</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, Integer &gt;&#160;</td>
          <td class="paramname"><em>wordsOfQuery</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>filtras sacas de la query las palabra que no esta en ningun documento </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">wordsOfQuery</td><td>Map de palabras de la query </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>devuelve el Map de la query </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00271">271</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_vocabulary_8java_source.html#l00087">com.utn.searchengine.Vocabulary.containsWord()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00168">com.utn.searchengine.LocalWordCountManager.determinateBestSimilitude()</a>.</p>

</div>
</div>
<a class="anchor" id="a46f22d947651c786498ae8f93a7ccb61"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::getDocumentModule" ref="a46f22d947651c786498ae8f93a7ccb61" args="(Document document, double invFrecuency)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a46f22d947651c786498ae8f93a7ccb61">com.utn.searchengine.LocalWordCountManager.getDocumentModule</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>invFrecuency</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Each <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> gots a module that can be considered as a position Vector. The module of a document will depend of the total amount of words, so, if new words are added to the vocabulary, all the document modules will have to be recalculated. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">document,:</td><td>A document </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The module that represents de vector of the document. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00104">104</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_post_list_8java_source.html#l00116">com.utn.searchengine.PostList.getWordsDocument()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>.</p>

</div>
</div>
<a class="anchor" id="adb499e31d2d177c13d7c30fc95d09984"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::getQueryModule" ref="adb499e31d2d177c13d7c30fc95d09984" args="(Map&lt; String, Integer &gt; wordsOfQuery)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#adb499e31d2d177c13d7c30fc95d09984">com.utn.searchengine.LocalWordCountManager.getQueryModule</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, Integer &gt;&#160;</td>
          <td class="paramname"><em>wordsOfQuery</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The words of a query need to be taken as a document, and the document needs to have a module. Because htis module is temporal and wount be saved on the postList, a different method was needed to calculate it. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">query</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The module of the query </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00222">222</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_vocabulary_8java_source.html#l00019">com.utn.searchengine.Vocabulary.getVocabularyWords()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00081">com.utn.searchengine.LocalWordCountManager.inverseFrecuency()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00168">com.utn.searchengine.LocalWordCountManager.determinateBestSimilitude()</a>.</p>

</div>
</div>
<a class="anchor" id="a4baf4121a603c1471bcc9e0856844bae"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::getTotalNumberOfDocuments" ref="a4baf4121a603c1471bcc9e0856844bae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#a4baf4121a603c1471bcc9e0856844bae">com.utn.searchengine.LocalWordCountManager.getTotalNumberOfDocuments</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the total of documents that exist. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00052">52</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_document_manager_8java_source.html#l00046">com.utn.searchengine.DocumentManager.documentsSize()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00081">com.utn.searchengine.LocalWordCountManager.inverseFrecuency()</a>.</p>

</div>
</div>
<a class="anchor" id="acd1c0280284cab09e9c1aca3686d9545"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::inverseFrecuency" ref="acd1c0280284cab09e9c1aca3686d9545" args="(Word word)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#acd1c0280284cab09e9c1aca3686d9545">com.utn.searchengine.LocalWordCountManager.inverseFrecuency</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The inverse frecuency is a common operation on the Weigth calcule. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The Base 10 Logaritm of the difference between the total documents and the number of documents where the word appears. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00081">81</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_word_8java_source.html#l00033">com.utn.searchengine.Word.getNr()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00052">com.utn.searchengine.LocalWordCountManager.getTotalNumberOfDocuments()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00222">com.utn.searchengine.LocalWordCountManager.getQueryModule()</a>.</p>

</div>
</div>
<a class="anchor" id="aad7261a1c223513a9126656550fd7d12"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::numberOfDocumentsWhereWordAppears" ref="aad7261a1c223513a9126656550fd7d12" args="(Word word)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#aad7261a1c223513a9126656550fd7d12">com.utn.searchengine.LocalWordCountManager.numberOfDocumentsWhereWordAppears</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of documents that contain the <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> at least once </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00071">71</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_post_list_8java_source.html#l00086">com.utn.searchengine.PostList.numberOfDocumentsWhereWordAppears()</a>.</p>

</div>
</div>
<a class="anchor" id="acde1570f752717dfe74eb14e8ad682c7"></a><!-- doxytag: member="com::utn::searchengine::LocalWordCountManager::timesThatAWordRepeatsOnDocument" ref="acde1570f752717dfe74eb14e8ad682c7" args="(Word word, Document document)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_local_word_count_manager.html#acde1570f752717dfe74eb14e8ad682c7">com.utn.searchengine.LocalWordCountManager.timesThatAWordRepeatsOnDocument</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>word</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a>&#160;</td>
          <td class="paramname"><em>document</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> </td></tr>
    <tr><td class="paramname">document,:</td><td>A <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_document.html">Document</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the times that the document contains the word. </dd></dl>

<p>Definition at line <a class="el" href="_local_word_count_manager_8java_source.html#l00062">62</a> of file <a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a>.</p>

<p>References <a class="el" href="_post_list_8java_source.html#l00076">com.utn.searchengine.PostList.totalTimesThatWordRepeatsOnDocument()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00131">com.utn.searchengine.LocalWordCountManager.estimateWeight()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/utn/searchengine/<a class="el" href="_local_word_count_manager_8java_source.html">LocalWordCountManager.java</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 16 2012 02:45:40 for DLC Search Engine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
